<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        {if $is_shop == 1}
        <div class="layui-form-item">
            <label class="layui-form-label">所属店铺</label>
            <div class="layui-input-block">
                <select name="shop_id" lay-verify="required">
                    <option value='' selected>请选择所属店铺</option>
                    {foreach $shops as $k=>$v}
                    <option value='{$v.id}'>{$v.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {/if}
        <!--<div class="layui-form-item">
            <label class="layui-form-label">店铺id</label>
            <div class="layui-input-block">
                <input type="text" name="shop_id" class="layui-input" autocomplete="off" lay-verify="required" placeholder="请输入店铺id" value="">
            </div>
        </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">分类名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" autocomplete="off" lay-verify="required" placeholder="请输入分类名称" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序值</label>
            <div class="layui-input-block">
                <input type="text" name="sort" class="layui-input" autocomplete="off" lay-verify="required" placeholder="请输入排序值" value="0">
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>